package com.fenghongzhang.a1810.mvp.module;

import com.fenghongzhang.a1810.mvp.contract.FoodContract;
import com.fenghongzhang.a1810.mvp.model.FoodModel;

import dagger.Module;
import dagger.Provides;

@Module
public class FoodModule {
    private FoodContract.IFoodView iFoodView;

    public FoodModule(FoodContract.IFoodView iFoodView) {
        this.iFoodView = iFoodView;
    }

    @Provides
    public FoodContract.IFoodModel getModel(){
        return new FoodModel();
    }

    @Provides
    public FoodContract.IFoodView getView(){
        return  iFoodView;
    }
}
